<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // 1.变量的起始值
    let i = 0;
    let y = parseInt(prompt("输入打印个数"));
    // 3.变量的终止条件
    while (i <= y) {
      document.write("月薪过万！！！</br>");
      // 2.变量的变化量
      i++;
    }
  </script>
</body>

</html>